/**
 *
 */
package jp.seraph.jsmf.motion;

import java.util.ArrayList;
import java.util.List;

import jp.seraph.jsade.task.AgentTask;
import jp.seraph.jsade.task.EnumerableTask;

/**
 *
 *
 */
public class MotionTask extends EnumerableTask {
    public MotionTask(Motion aMotion){
        ArrayList<AgentTask> tPoseTasks = new ArrayList<AgentTask>();

        
        for (MotionSession tSession : aMotion) {
            tPoseTasks.add(tSession.toTask());
        }
        
        initialize(tPoseTasks.iterator());
    }

    public MotionTask(List<AgentTask> aPoseTasks){
        initialize(aPoseTasks.iterator());
    }
}
